-
Notifications
You must be signed in to change notification settings - Fork 55
Conversation
package.json
Outdated
@@ -19,6 +19,8 @@ | |||
"deploy:docs": "gulp deploy:docs", | |||
"lint": "tslint -t stylish -p .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is now broken
package.json
Outdated
@@ -19,6 +19,8 @@ | |||
"deploy:docs": "gulp deploy:docs", | |||
"lint": "tslint -t stylish -p .", | |||
"lint:fix": "yarn lint --fix", | |||
"eslint": "eslint .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to name this just lint
. The fact that we use eslint for that is an implementation detail I don't care about.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI, while the PR was in WIP
state, I had both so I could run parallel tests of the two. Certainly agree on lint
👍
This PR is blocked waiting on the latest release from
See either of these issues: |
103e0ae
to
7b2af65
Compare
7b2af65
to
be899a8
Compare
Updated dependencies and unblocked PR 👍 |
I fixed the yarn.lock, but this caused issues with ESLint resolving the eslint config. Once fixing the resolution, there were over 3k lint errors. Will have to come back to this one. |
…/stardust-ui/react into chore/unused-vars # Conflicts: # yarn.lock
…ore/unused-vars # Conflicts: # package.json # packages/react/package.json # types/screener.d.ts # yarn.lock
Changed dependencies in
Generated by 🚫 dangerJS |
Codecov Report
@@ Coverage Diff @@
## master #600 +/- ##
======================================
Coverage 72.1% 72.1%
======================================
Files 731 731
Lines 5592 5592
Branches 1612 1612
======================================
Hits 4032 4032
Misses 1555 1555
Partials 5 5
Continue to review full report at Codecov.
|
@@ -0,0 +1,4 @@ | |||
{ | |||
"extends": ["./packages/internal-tooling/eslint/index.js"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paths are not great, should be fixed in ESLint 6: eslint/eslint#11388
@@ -0,0 +1,5 @@ | |||
{ | |||
"rules": { | |||
"import/no-unresolved": "off" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have requires for Enzyme, Simulant and other stuff that it's not in direct dependencies. Currently disabled
{ | ||
"files": "**/icons/*.tsx", | ||
"rules": { | ||
"react/prop-types": "off" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint with React plugin handles these icons as React components, it will be very strange to have there propTypes
...
{ | ||
files: '**/jest.config.js', | ||
rules: { | ||
'global-require': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's safe to use require()
there
We decided to keep TSLint before at least important rules will work properly. |
This PR replaces ts-lint with eslint.
Changes